package com.pipi.sso.dao.mapper;

import com.pipi.sso.dao.model.DormitoryBuildingDO;
import com.pipi.sso.dao.query.DormitoryBuildingQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for DormitoryBuilding.
 */
 @Mapper
 @Repository
public interface DormitoryBuildingMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(DormitoryBuildingQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DormitoryBuildingQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DormitoryBuildingDO record);

    /**
     * insert selective.
     */
    int insertSelective(DormitoryBuildingDO record);

    /**
     * select by query condition.
     */
    List<DormitoryBuildingDO> selectByQuery(DormitoryBuildingQuery query);

    /**
     * select by primary key.
     */
    DormitoryBuildingDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") DormitoryBuildingDO record, @Param("query") DormitoryBuildingQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") DormitoryBuildingDO record, @Param("query") DormitoryBuildingQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DormitoryBuildingDO record);
}